package helpers

trait ExceptionDefining {
  self: CanonicalNamed ⇒

  def errorCode(key: String) = s"$canonicalName.$key"

  def errorMessage(ex: Throwable) = s"$canonicalName.${ex.getClass}"
}
